<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{$Think.config.site.title} - 代理商详情信息</title>
    <meta name="keywords" content="{$Think.config.site.keywords}">
    <meta name="description" content="{$Think.config.site.description}">
    <link href="{$Think.config.site.resource_url}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/animate.css" rel="stylesheet">    
    <link href="{$Think.config.site.resource_url}css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/style.css?v=4.1.0" rel="stylesheet">
    <style type="text/css">#listtable .fa {cursor: pointer;color: #1ab394; margin-right: 1em;}</style>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight article">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="panel-group">
                         <div class="panel panel-default">
                            <div class="panel-collapse">
                                <div class="panel-body">
                                    <div class="col-sm-3">{:lang('代理商名称')}：{$ret.name}</div>
                                    <div class="col-sm-3">{:lang('联系人姓名')}：{$ret.contacts}</div>
                                    <div class="col-sm-3">{:lang('企业标识')}：{$ret.identifying}</div>
                                    <div class="col-sm-3">{:lang('支付状态')}：{if condition="$v['pay_status'] eq 1"} {:lang('已支付')} {elseif condition="$v['pay_status'] eq 0" /} {:lang('未支付')} {else /} {:lang('暂无支付信息')} {/if}</div>
                                </div>
                                <div class="panel-body">
                                    <div class="col-sm-3">{:lang('联系地址')}：{$ret.addrs}</div>
                                    <div class="col-sm-3">{:lang('客服电话')}：{$ret.servicephone}</div>
                                    <div class="col-sm-3">{:lang('域名')}：{$ret.domain}</div>

                                </div>
                                <div class="panel-body">
                                    <div class="col-sm-3">{:lang('商户数')}：{$sell}</div>
                                    <div class="col-sm-3">{:lang('用户数')}：{$users}</div>
                                    <div class="col-sm-3">{:lang('设备数')}：{$cabinet}</div>
                                    <div class="col-sm-3">{:lang('充电宝数')}：{$battery}</div>
                                </div>
                                <div class="panel-body">
                                    <div class="col-sm-3">{:lang('已选择版本')}：{$ver.name} {$ver.vision}</div>
                                    <div class="col-sm-3">{:lang('已选择模版id')}：{$ver.smapp_template_id}</div>
                                    <div class="col-sm-3">{:lang('实付金额')}：{$v.real_amount}</div>
                                    <div class="col-sm-3">{:lang('到期时间')}：{if condition="$v['old_expiration_date'] neq 0 "}{$v.old_expiration_date|date="Y-m-d",###}{else /} {:lang('永久')} {/if}</div>
                                </div>
                                <div class="panel-body">
                                <!--https://mls.meiweima.com/Lease?objhxy=mA==&&cineda=MC101707000028 -->
                                    <div class="col-sm-12">{:lang('二维码地址')}：{$Think.config.qrcodeurl}/Lease?objhxy={$ret.id|mwencrypt}&&cineda={:lang('机柜ID')}</div>
                                </div>
                                <div class="panel-body">
                                    <div class="col-sm-12">
                                        <table class="table table-hover">
                                            <thead>
                                                <tr>
                                                    <th>{:lang('订单号')}</th>
                                                    <th>{:lang('支付单号')}</th>
                                                    <th>{:lang('应付金额')}</th>
                                                    <th>{:lang('实付金额')}</th>
                                                    <th>{:lang('支付状态')}</th>
                                                    <th>{:lang('到账时间')}</th>
                                                    <th>{:lang('到期时间')}</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                              <?php if($list){ ?>
                                               {volist name="list" id="vo"} 
                                               <tr>
                                                    <td>{$vo.order_no}</td>
                                                    <td>{$vo.trade_no}</td>
                                                    <td>{$vo.payable_amount}</td>
                                                    <td>{$vo.real_amount}</td>
                                                    <td>{if condition="$vo['pay_status'] eq 1"} {:lang('已支付')} {elseif condition="$vo['pay_status'] eq 0" /} {:lang('未支付')} {else /} {/if}</td>
                                                    <td>{if condition="$vo['payment_date'] neq 0"}{$vo.payment_date|date="Y-m-d H:i:s",###}{/if}</td>
                                                    <td>{if condition="$vo['old_expiration_date'] neq 0"}{$vo.old_expiration_date|date="Y-m-d",### } {/if}</td>
                                                </tr> 
                                                {/volist}
                                                <?php } else{ ?>
                                                    <tr>
                                                        <td colspan="7">{:lang('暂无记录')}</td>
                                                    </tr>
                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>

                            </div>
                         </div>   
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>